package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Strategy;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IStrategyService {
    PageInfo query(QueryObject qo);

    void saveOrUpdate(Strategy entity);

    List<Strategy> listAll();

    List<Strategy> selectByState(Integer state);

    Strategy getById(Long id);

    void insertRelation(Long strategyId, Long travelId);

    void deleteRelation(Long strategyId, Long travelId);
}
